home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / Fresco / build / Unix / config / cf / osf1.cf < prev    next >
Text File  |  1995-07-12  |  4KB  |  144 lines

  1. XCOMM platform:  $XConsortium: osf1.cf,v 1.42.1.1 94/09/15 20:41:35 kaleb Exp $
  2. /* only tested with Digital OSF/1 */
  3.  
  4. #ifdef AlphaArchitecture
  5. #define OSName            OSF/1 1.3
  6. XCOMM operating system:  OSName
  7. #define OSMajorVersion        1
  8. #define OSMinorVersion        3
  9. #else
  10. #define OSName            OSF/1 1.0
  11. XCOMM operating system:  OSName
  12. #define OSMajorVersion        1
  13. #define OSMinorVersion        0
  14. #endif
  15.  
  16. /* Fresco configuration */
  17. #ifdef AlphaArchitecture
  18. #ifndef DefsImplNeedLibs
  19. #define DefsImplNeedLibs $(THREADS_LIBS) -lm
  20. #endif
  21. #ifndef DefsX11NeedLibs
  22. #define DefsX11NeedLibs $(LDPRELIB) -lFresco $(X11PRELIB) $(XONLYLIB) -lm
  23. #endif
  24. #ifndef FiguresNeedLibs
  25. #define FiguresNeedLibs $(LDPRELIB) -lFresco
  26. #endif
  27. #ifndef LayoutsNeedLibs
  28. #define LayoutsNeedLibs $(LDPRELIB) -lFresco
  29. #endif
  30. #ifndef WidgetsNeedLibs
  31. #define WidgetsNeedLibs $(LDPRELIB) -lFresco
  32. #endif
  33. #ifndef FiguresImplNeedLibs
  34. #define FiguresImplNeedLibs $(LDPRELIB) -lfigures -lFresco
  35. #endif
  36. #ifndef LayoutsImplNeedLibs
  37. #define LayoutsImplNeedLibs $(LDPRELIB) -llayouts -lFresco
  38. #endif
  39. #ifndef WidgetsImplNeedLibs
  40. #define WidgetsImplNeedLibs $(LDPRELIB) -lwidgets -llayouts -lfigures -lFresco -lm
  41. #endif
  42. #ifndef DishLibraries
  43. #define DishLibraries -u main $(TCLPRELIB) -ltcl -lFresco -lm
  44. #endif
  45. #ifndef FdrawLibraries
  46. #define FdrawLibraries -lwidgets -lfigures -llayouts -lFresco -lm
  47. #endif
  48. #endif
  49.  
  50. #define OSF1ShLib
  51. #define HasCplusplusMinusCMinusO             YES
  52.  
  53. #define HasPutenv        YES
  54. #define Malloc0ReturnsNull    YES
  55. #define HasNdbm            YES
  56. #define HasShm            YES
  57. #define AvoidNullMakeCommand    YES
  58. #define HasPosixThreads        YES
  59. #define SystemMTDefines -D_REENTRANT
  60. #define HasPoll            YES
  61. #define HasVFork                NO
  62. #define InstallCmd installbsd
  63. #define RanlibCmd ranlib -t
  64. #if OSMajorVersion > 1 || OSMinorVersion > 0
  65. #define ModernOSF1        YES
  66. #else
  67. #define ModernOSF1        NO
  68. #define ShLibDir /usr/shlib
  69. #define SharedLibPex        NO  /* losing, no shared -lm */
  70. #endif
  71. #define ThreadedX        ModernOSF1
  72.  
  73. #if ThreadedX
  74. #define ThreadsLibraries -lpthreads -lmach -lc_r
  75. #endif
  76.  
  77. /*
  78.  * C++ compiler setup.  This file knows what options to use with the
  79.  * DEC C++ compiler, and may learn about other compilers in the future.
  80.  * 
  81.  * For DEC C++, define HasDECCplusplus to YES in site.def.  
  82.  * For other compilers, define HasCplusplus to YES in site.def, and 
  83.  *    check to see if you need to provide values for CplusplusOptions
  84.  *    and/or DefaultCplusplusOptions.
  85.  *
  86.  * In any case, you may also need to set CplusplusDependIncludes.
  87.  *
  88.  * NOTE:  For DEC C++ version 1.3, we want to set ForceNormalLib 
  89.  *       to YES because no one has managed to get the C++ compiler 
  90.  *      to either build or link with shared libraries, and DEC has
  91.  *        not been able to tell us how to do it.
  92.  */
  93.  
  94. #if HasDECCplusplus
  95. #ifndef HasCplusplus 
  96. #define HasCplusplus YES
  97. #endif
  98. #ifndef SharedLibFresco
  99. #define SharedLibFresco NO
  100. #endif
  101. #ifndef SharedLibXtf
  102. #define SharedLibXtf NO
  103. #endif
  104. #ifndef CplusplusCmd
  105. #define CplusplusCmd /usr/bin/cxx
  106. #endif
  107. #ifndef CplusplusDependIncludes 
  108. #define CplusplusDependIncludes -D__DECCXX -I/usr/include/cxx
  109. #endif
  110. #ifndef CplusplusLibC
  111. #define CplusplusLibC -L/usr/lib/cmplrs/cxx -lcxx
  112. #endif
  113. #ifndef ForceNormalLib
  114. #define ForceNormalLib YES
  115. #endif
  116. #endif /* HasDECCplusplus */
  117.  
  118. #include <osfLib.rules>
  119. #define NoRConst        YES
  120.  
  121. #ifdef HasGcc
  122. #define HasWChar32        YES
  123. #define DefaultCCOptions    /* nothing */
  124. #define XawI18nDefines        -DHAS_WCHAR_H
  125. #define BuildServer        NO
  126. #else
  127. #ifdef AlphaArchitecture
  128. #define HasWChar32        YES
  129. #define DefaultCCOptions    -std1
  130. #define XawI18nDefines        -DHAS_WCHAR_H
  131. #define BuildServer        NO
  132. #endif
  133. #endif
  134. #ifdef MipsArchitecture
  135. #define DefaultCCOptions    -Xc
  136. #define XdecServer YES
  137. #define ServerOSDefines -DDDXTIME
  138. #define PexCCOptions -Xc -Wf,-XNp15000,-XNd15000
  139. #define NormalLibObjCompile(options) $(RM) $@ $*.os \            @@\
  140.     && $(CC) -c options $(CFLAGS) $*.c \                @@\
  141.     && $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \            @@\
  142.     && $(MV) $*.os $@
  143. #endif
  144.